home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Development Tools & Languages / Dylan Related / Mindy-1.1 (sources only) / mindy-1.1 / libraries / dylan / exports.dylan < prev    next >
Encoding:
Text File  |  1994-08-18  |  8.9 KB  |  274 lines  |  [TEXT/ttxt]

  1. module: dylan-user
  2. rcs-header: $Header: exports.dylan,v 1.40 94/08/18 18:41:23 wlott Exp $
  3.  
  4. //======================================================================
  5. //
  6. // Copyright (c) 1994  Carnegie Mellon University
  7. // All rights reserved.
  8. // 
  9. // Use and copying of this software and preparation of derivative
  10. // works based on this software are permitted, including commercial
  11. // use, provided that the following conditions are observed:
  12. // 
  13. // 1. This copyright notice must be retained in full on any copies
  14. //    and on appropriate parts of any derivative works.
  15. // 2. Documentation (paper or online) accompanying any system that
  16. //    incorporates this software, or any part of it, must acknowledge
  17. //    the contribution of the Gwydion Project at Carnegie Mellon
  18. //    University.
  19. // 
  20. // This software is made available "as is".  Neither the authors nor
  21. // Carnegie Mellon University make any warranty about the software,
  22. // its performance, or its conformity to any specification.
  23. // 
  24. // Bug reports, questions, comments, and suggestions should be sent by
  25. // E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  26. //
  27. //======================================================================
  28. //
  29. //  This file contains the library and module definitions for the
  30. // Dylan library.
  31. //
  32.  
  33. define library Dylan
  34.   export Dylan, Extensions, System, File-Descriptors, Threads;
  35. end Dylan;
  36.  
  37. define module Builtin-Stuff
  38.   export
  39.     \*, \+, \-, \/, \<, \<=, \=, \==, \~=,
  40.     <array>,
  41.     <boolean>, <buffer>, <byte-string>, <byte-vector>,
  42.     <character>, <class>, <collection>, <complex>,
  43.     <double-float>,
  44.     <empty-list>, <event>, <explicit-key-collection>, <extended-float>,
  45.     <false>, <float>, <function>,
  46.     <generic-function>,
  47.     <integer>,
  48.     <list>, <lock>,
  49.     <method>, <mutable-collection>, <mutable-explicit-key-collection>,
  50.     <mutable-sequence>,
  51.     <number>,
  52.     <object>,
  53.     <pair>,
  54.     <ratio>, <rational>, <real>,
  55.     <sequence>, <simple-object-vector>, <single-float>, <singleton>,
  56.     <spinlock>, <string>, <symbol>,
  57.     <thread>, <true>, <type>,
  58.     <unicode-string>,
  59.     <vector>,
  60.     <weak-pointer>,
  61.     $permanent-hash-state,
  62.     add-method, all-superclasses, applicable-method?, apply,
  63.     apply-curry, as, ash,
  64.     broadcast-event,
  65.     direct-subclasses, direct-superclasses,
  66.     ceiling, ceiling/, copy-bytes, current-handler, current-thread,
  67.     do-next-method,
  68.     element, element-setter, enable-error-system,
  69.     find-method, float-hash, floor, floor/, format, function-arguments,
  70.     generic-function-mandatory-keywords, generic-function-methods,
  71.     getc, grab-lock,
  72.     handler-function, handler-init-args, handler-next, handler-test,
  73.     handler-type, head, head-setter,
  74.     initialize, instance?, invoke-debugger,
  75.     kill-thread,
  76.     limited, list, locked?, logand, logbit?, logior, lognot, logxor,
  77.     main, make, make-generic-function, merge-hash-codes, method-specializers,
  78.     negative,
  79.     object-class, object-hash,
  80.     pair, prin1, print, putc, puts,
  81.     raw-exit, release-lock, remove-method, round, round/,
  82.     signal-event, singleton, size, slot-initialized?, spawn-thread,
  83.     sorted-applicable-methods, state-valid?, subtype?,
  84.     tail, tail-setter, truncate, truncate/,
  85.     union,
  86.     values, vector,
  87.     wait-for-event, weak-pointer-object,
  88.     fd-close, fd-error-string, fd-input-available?, fd-open,
  89.     fd-read, fd-seek, fd-sync-output, fd-write, fd-exec,
  90.     L_SET, L_INCR, L_XTND, FNDELAY, FAPPEND, FCREAT, FTRUNC, FEXCL, O_RDONLY,
  91.     O_WRONLY, O_RDWR, O_NDELAY, O_APPEND, O_CREAT, O_TRUNC, O_EXCL,
  92.     ENOENT, EIO, ENXIO, EACCES, EFAULT, EEXIST, ENOTDIR, EISDIR,
  93.     EINVAL, ENFILE, EMFILE, ETXTBSY, ENOSPC, EROFS, EOPNOTSUPP, ELOOP,
  94.     ENAMETOOLONG, EDQUOT, EBADF, EINTR, EWOULDBLOCK, EPIPE, EFBIG;
  95.   create
  96.     aref, aref-setter, do, error, type-error,
  97.     make-next-method-function, generic-apply,
  98.     forward-iteration-protocol, backward-iteration-protocol, 
  99.     table-protocol, negative?,
  100.     debugger-flush, debugger-call, debugger-print, debugger-report-condition,
  101.     debugger-abort, debugger-describe-restarts, debugger-restart,
  102.     debugger-return, debugger-eval,
  103.     on-exit, exit;
  104. end Builtin-Stuff;
  105.  
  106. define module Dylan
  107.   use Builtin-Stuff,
  108.     import: all,
  109.     export: {\*, \+, \-, \/, \<, \<=, \=, \==, \~=,
  110.          <array>,
  111.          <byte-string>,
  112.          <character>, <class>, <collection>, <complex>,
  113.          <double-float>,
  114.          <empty-list>, <explicit-key-collection>, <extended-float>,
  115.          <float>, <function>,
  116.          <generic-function>,
  117.          <integer>,
  118.          <list>,
  119.          <method>, <mutable-collection>, <mutable-explicit-key-collection>,
  120.          <mutable-sequence>,
  121.          <number>,
  122.          <object>,
  123.          <pair>,
  124.          <ratio>, <rational>, <real>,
  125.          <sequence>, <simple-object-vector>, <single-float>, <singleton>,
  126.          <string>, <symbol>,
  127.          <type>,
  128.          <unicode-string>,
  129.          <vector>,
  130.          $permanent-hash-state,
  131.          add-method, all-superclasses, applicable-method?, apply,
  132.          aref, aref-setter, as, ash,
  133.          backward-iteration-protocol,
  134.          direct-subclasses, direct-superclasses,
  135.          ceiling, ceiling/,
  136.          do,
  137.          element, element-setter, error,
  138.          find-method, floor, floor/, forward-iteration-protocol,
  139.          function-arguments,
  140.          generic-function-mandatory-keywords, generic-function-methods,
  141.          head, head-setter,
  142.          initialize, instance?,
  143.          limited, list, logand, logbit?, logior, lognot, logxor,
  144.          make, merge-hash-codes, method-specializers,
  145.          negative, negative?,
  146.          object-class, object-hash,
  147.          pair,
  148.          remove-method, round, round/,
  149.          singleton, size, slot-initialized?, sorted-applicable-methods,
  150.          subtype?,
  151.          table-protocol, tail, tail-setter, truncate, truncate/,
  152.          union,
  153.          values, vector};
  154.   export
  155.     \>=, \>, \:=, \|, \&,
  156.     <abort>,
  157.     <condition>,
  158.     <deque>,
  159.     <error>,
  160.     <object-table>,
  161.     <range>, <restart>,
  162.     <serious-condition>, <simple-error>, <simple-restart>,
  163.     <simple-warning>, <stretchy-collection>, <stretchy-vector>,
  164.     <table>, <type-error>,
  165.     <warning>,
  166.     abort, abs, add, add!, add-new, add-new!, always, any?, as-lowercase,
  167.     as-lowercase!, as-uppercase, as-uppercase!,
  168.     break,
  169.     cerror, check-type, choose, choose-by,
  170.     class-for-copy, complement, compose, concatenate, concatenate-as,
  171.     condition-format-string, condition-format-arguments, conjoin,
  172.     copy-sequence, curry,
  173.     default-handler, denominator, dimension, dimensions, disjoin, do-handlers,
  174.     empty?, even?, every?, expt,
  175.     fill!, find-key, first, first-setter,
  176.     gcd,
  177.     identity, integral?, intersection,
  178.     key-sequence, key-test,
  179.     last, last-setter, lcm,
  180.     map, map-as, map-into, max, member?, min, modulo,
  181.     numerator,
  182.     odd?,
  183.     pop, pop-last, positive?, push, push-last,
  184.     range, rank, rationalize, rcurry, reduce, reduce1, remainder, remove,
  185.     remove!, remove-duplicates, remove-duplicates!, remove-key!,
  186.     replace-elements!, replace-subsequence!, restart-query,
  187.     return-allowed?, return-description, return-query, reverse, reverse!,
  188.     row-major-index,
  189.     second, second-setter, shallow-copy, signal, size-setter, sort, sort!,
  190.     subsequence-position,
  191.     third, third-setter, type-error-value,
  192.     type-error-expected-type,
  193.     zero?;
  194. end Dylan;
  195.  
  196. define module Extensions
  197.   use Dylan;
  198.   use Builtin-Stuff,
  199.     import: {main, exit, on-exit,
  200.          format, prin1, print, putc, puts, getc, <byte-vector>,
  201.          <boolean>, <true>, <false>,
  202.          <weak-pointer>, weak-pointer-object},
  203.     export: all;
  204.   export
  205.     one-of, type-or, ignore,
  206.     <equal-table>, equal-hash, collection-hash, 
  207.     <value-table>, value-hash, sequence-hash, string-hash;
  208. end Extensions;
  209.  
  210. define module System
  211.   use Dylan;
  212.   use Builtin-Stuff,
  213.     import: {<buffer>, copy-bytes},
  214.     export: all;
  215. end System;
  216.  
  217. define module File-Descriptors
  218.   use Dylan;
  219.   use Builtin-Stuff,
  220.     import: {fd-close, fd-error-string, fd-input-available?,
  221.          fd-open, fd-read, fd-seek, fd-sync-output, fd-write, fd-exec,
  222.  
  223.          // Lseek call.
  224.          //
  225.          L_SET, L_INCR, L_XTND,
  226.  
  227.          // Flags also for fcntl call.
  228.          //
  229.          FNDELAY, FAPPEND,
  230.  
  231.          // Open only modes.
  232.          //
  233.          FCREAT, FTRUNC, FEXCL,
  234.  
  235.          // Open call.
  236.          //
  237.          O_RDONLY, O_WRONLY, O_RDWR, O_NDELAY, O_APPEND, O_CREAT, O_TRUNC,
  238.          O_EXCL,
  239.  
  240.          // Open errors.
  241.          //
  242.          ENOENT, EIO, ENXIO, EACCES, EFAULT, EEXIST, ENOTDIR, EISDIR,
  243.          EINVAL, ENFILE, EMFILE, ETXTBSY, ENOSPC, EROFS, EOPNOTSUPP, ELOOP,
  244.          ENAMETOOLONG, EDQUOT,
  245.  
  246.          // Close errors.
  247.          //
  248.          EBADF,
  249.  
  250.          // Read errors (that are also not Open or Close errors).
  251.          //
  252.          EINTR,
  253.          EWOULDBLOCK,
  254.  
  255.          // Write errors (that are not also open, close, or read errors).
  256.          //
  257.          EPIPE,
  258.          EFBIG},
  259.     export: all;
  260. end File-Descriptors;
  261.  
  262. define module Threads
  263.   use Dylan;
  264.   use Extensions;
  265.   use Builtin-Stuff,
  266.     import: {<thread>, spawn-thread, current-thread, kill-thread,
  267.          <lock>, <spinlock>,
  268.          locked?, grab-lock, release-lock,
  269.          <event>, wait-for-event, signal-event, broadcast-event},
  270.     export: all;
  271.   export
  272.     <multilock>, <semaphore>;
  273. end;
  274.